package com.corn.influx;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.Data;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2022/12/15 14:39
 */
@Data
@Measurement(name = "temperature")
public class Temperature {
    // 表示改字段是一个tag
    @Column(tag = true)
    private String city;

    // 默认该字段是一个field
    @Column
    private Double value;
}
